package com.ruoyi.bus.service;

import java.util.List;
import com.ruoyi.bus.domain.WitAppoint;

/**
 * 车辆预约Service接口
 * 
 * @author caiyanshan
 * @date 2021-04-14
 */
public interface IWitAppointService 
{
    /**
     * 查询车辆预约
     * 
     * @param appointId 车辆预约ID
     * @return 车辆预约
     */
    public WitAppoint selectWitAppointById(Long appointId);

    /**
     * 查询车辆预约列表
     * 
     * @param witAppoint 车辆预约
     * @return 车辆预约集合
     */
    public List<WitAppoint> selectWitAppointList(WitAppoint witAppoint);

    /**
     * 新增车辆预约
     * 
     * @param witAppoint 车辆预约
     * @return 结果
     */
    public int insertWitAppoint(WitAppoint witAppoint);

    /**
     * 修改车辆预约
     * 
     * @param witAppoint 车辆预约
     * @return 结果
     */
    public int updateWitAppoint(WitAppoint witAppoint);

    public int updateWitAppointByPlanId(WitAppoint witAppoint);

    /**
     * 批量删除车辆预约
     * 
     * @param appointIds 需要删除的车辆预约ID
     * @return 结果
     */
    public int deleteWitAppointByIds(Long[] appointIds);

    /**
     * 删除车辆预约信息
     * 
     * @param appointId 车辆预约ID
     * @return 结果
     */
    public int deleteWitAppointById(Long appointId);
    
    public int updateOverAppoint(WitAppoint witAppoint);
    
    public int updateNotOverAppoint(WitAppoint witAppoint);
    
    public int updateTestOverAppoint(WitAppoint witAppoint);

    public List<WitAppoint> selectInCarCount(WitAppoint appoint);
    
    public int updateWitAppointStatus();
}
